namespace Avanzis.QueryObjects
{
    /// <summary>
    /// Gestor de conexiones
    /// </summary>
    public class ConnectionManager
    {
       
        //private DbConnection connection;        

        //public DbConnection OpenConnection()        {                   
                
        //    if (connection == null)
        //    {
        //        connection = context.CurrentSession();

        //        if (connection == null)
        //        {                    
        //            connection = Database.CreateConnection(PersistentConfiguration.ConnectionString);
        //            connection.Open();
        //        }
        //    }

        //    return connection;
        //}

        //public static DbConnection CloseConnection()
        //{
        //    if (connection == null)
        //    {                
        //        connection = connection.CurrentSession();
        //        connection.Close();
        //        connection = null;
        //    }

        //    return connection;            
        //}
        

    }
}
